import request from '@/utils/request'
// 排班列表
export function getSchedulingList(data) {
  return request({
    url: '/api/scheduling_list',
    method: 'POST',
    data,
  })
}
// 获取部门
export function getDepartmentList() {
  return request({
    url: '/api/department_list',
    method: 'POST',
  })
}
// 添加排班 和 修改
export function addScheduling(data) {
  return request({
    url: '/api/scheduling_add',
    method: 'post',
    data,
  })
}

// 删除
export function delScheduling(data) {
  return request({
    url: '/api/scheduling_del',
    method: 'POST',
    data,
  })
}
// 获取排班医生的信息
export function getSchedulingLists(data) {
  return request({
    url: '/api/get_scheduling_list',
    method: 'POST',
    data,
  })
}

// 排班详情
export function schedulingDetail(data) {
  return request({
    url: '/api/scheduling_detail',
    method: 'POST',
    data,
  })
}

// 排班详情
export function schedulingSave(data) {
  return request({
    url: '/api/scheduling_save',
    method: 'POST',
    data,
  })
}
